    $(".tobeconsidered img").click(function(){
        location.href="./CollectionHeadhunting-choose.html";
    })
    // $(".tobeconsidered td:lt(7)").click(function(){
    //     location.href="./CollectionHeadhunting-details.html";
    // })


    $(".hdetail").on('click',function()
    {
    	location.href = "detail.html?head="+$(this).data('hid');
    });

    $('.mode').on('click',function()
    {
    	var sta = $(this).data('status');
    	var hid = $(this).data('hid');
    	$('.modall-back').css('display','block');
    	$.post(
    		'list.html',
    		{'sta':sta,'hid':hid,'_csrf':$('.request-csrf').val()},
    		function(res)
    		{
    			$('.number-table').html(res);
    		}
    		);

    	return false;
    });

     $('.delete-collection').on('click',function(){
        var head_id = new Array();
        $('.del:checked').each(function(i){
            head_id[i] = $(this).data('hid');
        });
        if (head_id.length == 0) {
        alert('没有选中猎头');
        return false;
         }


        $.post(
            'cancelall.html',
            {'head_id':head_id,'_csrf':$('.request-csrf').val()},
            function(res)
            {
                res = eval('('+res+')');
                if(res.code == 400)
                {
                    alert(res.msg);
                }else
                {
                    window.location.reload();
                }

            });
    });
     $('.modal-close').click(function(){
        $('.modall-back').hide();
     })